package com.android.common.mvp.view.activity;

import androidx.fragment.app.FragmentTransaction;
import com.android.common.R;
import com.android.common.base.BaseActivity;
import com.android.common.mvp.view.fragment.SwitchEnvFragment;

/**
 * 切换环境
 */
public class SwitchEnvActivity extends BaseActivity {

    @Override
    protected int onSetRootViewId() {
        return R.layout.common_content;
    }

    @Override
    protected void onInitFragment() {
        super.onInitFragment();
        SwitchEnvFragment fragment = new SwitchEnvFragment();
        fragment.setArguments(mBundle);
        FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
        ft.add(R.id.fl_content, fragment);
        ft.commit();
    }
}